package com.clarence.dada.modular.system.menu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.clarence.dada.core.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 菜单资源的关联
 *
 * @author GD
 * @since 2021/8/8 21:35
 */
@Data
@TableName("sys_menu_resource")
@EqualsAndHashCode(callSuper = true)
public class SysMenuResourceEntity extends BaseEntity implements Serializable {

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long menuResourceId;

    /**
     * 绑定资源的类型，1：菜单，2：菜单下按钮
     */
    private Integer businessType;

    /**
     * 菜单或按钮id
     */
    private Long businessId;

    /**
     * 资源的编码
     */
    private String resourceCode;

}
